package com.wecan.api.saasdata;

import com.wecan.base.PO.Oss;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Lazy;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author liuzhihao
 * @Date 2022.01.15
 * @Version 1.0.0
 * @Description oss数据服务
 */
@FeignClient(name = "saasdata", path = "/oss")
public interface OssData {

    @PostMapping(value = "/insert")
    boolean insert(@RequestBody Oss oss);

    @PostMapping(value = "/delete")
    boolean delete(@RequestParam("id") Long id);

    @PostMapping(value = "/increcount")
    boolean increCount(@RequestParam("Key") String key);

    @PostMapping(value = "/decrecount")
    boolean decreCount(@RequestParam("key") String key);
}
